﻿using System;
using System.Collections.Generic;
using System.Text;
using T.FAS.Runtime.Metadata.Entity.ScheduleJob;

namespace T.FAS.Runtime.ScheduleJob.Dao
{
    public interface IScheduleTriggerDao
    {
        List<ScheduleTrigger> GetScheduleTriggerByFilter(Dictionary<string, string> filter);
        ScheduleTrigger GetScheduleTriggerByID(string triggerID);
        ScheduleTrigger GetScheduleTriggerByScheduleJobID(string sJobID);
        void AddScheduleTrigger(Metadata.Entity.ScheduleJob.ScheduleJob sJob,ScheduleTrigger trigger);
        void UpdateScheduleTrigger(ScheduleTrigger trigger);
        void DeleteScheduleTrigger(string triggerID);
        void DeleteScheduleTriggerByScheduleJobID(string sJobID);
        int CheckUnique(Dictionary<string, string> filter);
    }
}
